package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsGywmBannerMapper;
import com.ruoyi.cms.domain.CmsGywmBanner;
import com.ruoyi.cms.service.ICmsGywmBannerService;

/**
 * 关于我们信息模块Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-08
 */
@Service
public class CmsGywmBannerServiceImpl implements ICmsGywmBannerService 
{
    @Autowired
    private CmsGywmBannerMapper cmsGywmBannerMapper;

    /**
     * 查询关于我们信息模块
     * 
     * @param id 关于我们信息模块主键
     * @return 关于我们信息模块
     */
    @Override
    public CmsGywmBanner selectCmsGywmBannerById(Long id)
    {
        return cmsGywmBannerMapper.selectCmsGywmBannerById(id);
    }

    /**
     * 查询关于我们信息模块列表
     * 
     * @param cmsGywmBanner 关于我们信息模块
     * @return 关于我们信息模块
     */
    @Override
    public List<CmsGywmBanner> selectCmsGywmBannerList(CmsGywmBanner cmsGywmBanner)
    {
        return cmsGywmBannerMapper.selectCmsGywmBannerList(cmsGywmBanner);
    }

    /**
     * 新增关于我们信息模块
     * 
     * @param cmsGywmBanner 关于我们信息模块
     * @return 结果
     */
    @Override
    public int insertCmsGywmBanner(CmsGywmBanner cmsGywmBanner)
    {
        return cmsGywmBannerMapper.insertCmsGywmBanner(cmsGywmBanner);
    }

    /**
     * 修改关于我们信息模块
     * 
     * @param cmsGywmBanner 关于我们信息模块
     * @return 结果
     */
    @Override
    public int updateCmsGywmBanner(CmsGywmBanner cmsGywmBanner)
    {
        return cmsGywmBannerMapper.updateCmsGywmBanner(cmsGywmBanner);
    }

    /**
     * 批量删除关于我们信息模块
     * 
     * @param ids 需要删除的关于我们信息模块主键
     * @return 结果
     */
    @Override
    public int deleteCmsGywmBannerByIds(Long[] ids)
    {
        return cmsGywmBannerMapper.deleteCmsGywmBannerByIds(ids);
    }

    /**
     * 删除关于我们信息模块信息
     * 
     * @param id 关于我们信息模块主键
     * @return 结果
     */
    @Override
    public int deleteCmsGywmBannerById(Long id)
    {
        return cmsGywmBannerMapper.deleteCmsGywmBannerById(id);
    }
}
